//
//  WBStatusModel.swift
//  微博Demo
//
//  Created by 花化华 on 2016/11/28.
//  Copyright © 2016年 itcast. All rights reserved.
//

import UIKit

class WBStatusModel: NSObject {

    //微博创建时间
    var created_at: String?
    //微博ID
    var id: String?
    //微博信息内容
    var text: String?
    //微博来源
    var source: String?
    //微博作者的用户信息字段
    var user: WBUserModel?
    //图片数组
    var pic_urls: [WBPictureModel]?
    //被转发的原微博信息字段，当该微博为转发微博时返回
    var retweeted_status: WBStatusModel?
    
    override var description: String {
        return dictionaryWithValues(forKeys: ["created_at", "id", "text", "source", "user", "pic_urls", "retweeted_status"]).description
    }
    
    //如果模型中,包含一个模型数据,则需要实现该方法
    class func modelContainerPropertyGenericClass () -> [String: Any] {
        return ["pic_urls": WBPictureModel.self]
    }
    
}
